package com.ssy.lingxi.common.constant.order;

import com.ssy.lingxi.common.language.LanguageHolder;

/**
 * 订单结算方式枚举
 * @author 万宁
 * @version 2.0.0
 * @date 2021-08-10
 */
public enum OrderSettlementEnum {
    /**
     * 账期（默认） - 1
     */
    PERIOD(1, "账期(默认)"),

    /**
     * 月结 - 2
     */
    MONTH(2, "月结");

    OrderSettlementEnum(Integer code, String name) {
        this.code = code;
        this.name = name;
    }

    private Integer code;
    private String name;

    public Integer getCode() {
        return code;
    }

    public String getName() {
        return LanguageHolder.getName(this.getClass(), this.getCode());
    }
}
